const nodeEcharts = require("node-echarts");
// const http = require("./http");

const buf = nodeEcharts({
  width: 500, // Image width, type is number.
  height: 500, // Image height, type is number.
  option: {
    xAxis: {
      type: "category",
      data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
    },
    yAxis: {
      type: "value"
    },
    series: [
      {
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: "line"
      }
    ]
  },
  path: "",
  enableAutoDispose: true
});

console.log(buf);
